home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atlas of Florida
/
Atlas of Florida.iso
/
Movies
/
1.0 Introduction
/
1.0 Introduction
/
00241_Script_241
< prev
next >
Wrap
Text File
|
1994-08-23
|
2KB
|
64 lines
--
on initPopMenu
openXLib "PopUp Menu XObj"
-- set up menus
put "1" into cast "DisValue"
put " in" into cast "DisMen1"
put " cm" into cast "DisMen2"
-- Spaces after "gal" are important as are all spaces in the menus,
--they set the pop up menu width and are needed for the if...then stuff
put "1" into cast E12
put " gal " into cast E13
put " l" into cast E17
put "1" into cast E22
put " lb" into cast E23
put " kg" into cast E27
put " " into cast "AnswerString"
MakeConversion
-- set these sprites to act on the mouse down, instead of the mouse up
set the immediate of sprite 6 to TRUE -- item menu
set the immediate of sprite 9 to TRUE -- item menu
set the immediate of sprite 12 to TRUE -- item menu
set the immediate of sprite 15 to TRUE -- item menu
set the immediate of sprite 18 to TRUE -- item menu
set the immediate of sprite 21 to TRUE -- item menu
on MakeConversionAll
-- does all the conversions
if the clickOn = 5 then
MakeConversion
showChannel 8
-- hide other answers
hideChannel 14
hideChannel 20
else
if the clickOn = 11 then
MakeConversionVol
showChannel 14
-- hide other answers
hideChannel 8
hideChannel 20
else
if the clickOn = 17 then
MakeConversionWgt
showChannel 20
-- hide other answers
hideChannel 8
hideChannel 14
end if
end if
end if
put " " into cast F33
on PopQuit
closeXLib "PopUp Menu XObj"